//$Id$

function push(msg) { parent.push(msg); }
function plive() { parent.plive(); }
function getPrd() { return parent.getPrd(); }
function getUserName() { return parent.getUserName(); }
function getNickName() { return parent.getNickName(); }
function getZuid() { return parent.getZuid(); }
function getUserId() { return parent.getUserId(); }
function getSid() { return parent.getSid(); }
function isReconnecting() { return parent.isReconnecting(); }
function getITicket() { return parent.getITicket(); }
function disablewms() { parent.disablewms()};
function isdisablewms() { return parent.isdisablewms()};


window.onload = function()
{
	var curdomain = wmssubdomain;
	document.domain = curdomain;

	var dataStreamUrl = window.location.protocol+"//"+wmsdomain+"."+wmssubdomain+"/wms.html?"+window.parent.nocachefix();
	var subframe = document.createElement('iframe');      
	document.body.appendChild(subframe);      
	subframe.src = dataStreamUrl;	
	subframe.contentWindow.push = window.parent.push;
	subframe.contentWindow.plive = window.parent.plive;
	subframe.contentWindow.getPrd = window.parent.getPrd;
	subframe.contentWindow.getUserName = window.parent.getUserName;
	subframe.contentWindow.getNickName = window.parent.getNickName;
	subframe.contentWindow.getZuid = window.parent.getZuid;
	subframe.contentWindow.getUserId = window.parent.getUserId;
	subframe.contentWindow.getSid = window.parent.getSid;
	subframe.contentWindow.isReconnecting = window.parent.isReconnecting;
	subframe.contentWindow.getITicket = window.parent.getITicket;
	subframe.contentWindow.disablewms = window.parent.disablewms;
	subframe.contentWindow.isdisablewms = window.parent.isdisablewms;
}
